<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/6
 * Time: 10:28
 */
$username=$_POST['username'];
$pwd=$_POST['pwd'];
if ($username=='admin'&&$pwd=='888888'){
    echo '登录成功!!!<br/><br/>';
    echo $username.',欢迎！！';
    setcookie('Token',md5($username.$pwd.time()),time()+24*3600);
    echo '<br/><br/><a href="user.php">进入用户中心</a>';
}else{
    echo '<a href="index.php">登录失败，点击返回登录。</a>';
}